package com.youko.backstage.mapper.commodity;

import com.youko.backstage.bean.commodity.CommodityBrand;
import com.youko.backstage.bean.commodity.CommodityCategory;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CommodityCategoryMapper {


    /**
     * 查询种类
     * @return
     */
    CommodityCategory selectCategory(String name);

    /**
     * 查询所有种类
     * @return
     */
    List<CommodityCategory> selectAllCategory();

    /**
     * 查询所有3级种类
     * @return
     */
    List<CommodityCategory> selectAllCategory3();




}
